<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class ShortUrlApi extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'short_url_api';
    
    //局部作用域--是否显示
	public function scopeShow($query){
        return $query->where('state', 1);
    }
}
